package com.quanyan.riding.util;

import com.quanyan.common.enums.BaseEnum;

/**
 * Created by Administrator on 2016/7/22.
 */
public enum RunEnum implements BaseEnum {

    PARAMETER_NOT_ALLOW_NULL(21,"PARAMETER_NOT_ALLOW_NULL","参数不能为空",false),
    PARAMETER_NOT_VALID(22,"PARAMETER_NOT_VALID","参数非法",false),
    ;

    protected int id;

    protected String code;

    protected String label;

    protected boolean success;


    RunEnum(int id, String code, String label, boolean success) {
        this.id = id;
        this.code = code;
        this.label = label;
        this.success = success;
    }

    @Override
    public boolean isSuccess() {
        return success;
    }

    @Override
    public int getId() {
        return id;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getLabel() {
        return label;
    }
}
